
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/message.css" />
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/common.js"></script>
    <script src="../js/checkLogin.js"></script>
    <script>
        $(function () {
            $.get(baseUrl+"chatrooms/"+user.id, function (data) {
                var json;
                json = {"list": data};
                console.log(json);
                $("#receivers").renderValues(json,{
                    "getHref" : function (item, value) {
                        var url = $(item).data("href");
                        $(item).attr("href",url+value);
                    }
                });

            })
        });
    </script>
</head>
<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="/mine/profiles.html">
                <span><i class="fa fa-chevron-left" ></i></span>
            </a>
        </div>
        <div class="col">
            <span>我的群聊</span>
        </div>
        <div class="col"></div>
    </div>
</div>
<div id="receivers">
    <div render-loop="list">
        <ul class="list-group">
            <a data-href="/mine/receiverGroup.html?receiverId=" render-key="list.id" render-fun="getHref">
                <li class="list-group-item d-flex justify-content-between align-items-center">
                    <div class="item">
                        <img render-src="list.headImg" width="30px"/>
                        <span render-html="list.name"></span>
                    </div>
                    <div class="item">
                        <span render-html="list.update_time"></span>
                    </div>

                </li>
            </a>
        </ul>
    </div>
</div>
</body>
</html>